﻿using System;

namespace GeoAPI.Geometries
{
	public class LocationUtility
	{
		public static char ToLocationSymbol(Location locationValue)
		{
			switch (locationValue)
			{
			case Location.Null:
				return '-';
			case Location.Interior:
				return 'i';
			case Location.Boundary:
				return 'b';
			case Location.Exterior:
				return 'e';
			default:
				throw new ArgumentException("Unknown location value: " + locationValue);
			}
		}
	}
}
